<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
	<meta charset="utf-8">
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta content="width=device-width, minimum-scale=1,initial-scale=1, maximum-scale=1, user-scalable=1" id="viewport" name="viewport" />
	<meta content="yes" name="apple-mobile-web-app-capable" />
	<meta content="black" name="apple-mobile-web-app-status-bar-style" />
	<meta content="telephone=no" name="format-detection" />
	<link type="text/css" rel="stylesheet" href="../../template/css/com/com.css"/>
	<link type="text/css" rel="stylesheet" href="../../template/css/list/style.css"/>
	<link rel="stylesheet" href="../../resource/weuimin.css" />
    <link rel="stylesheet" href="../../resource/jinsuistyle.css" />
	<script src="../../template/js/jquery.js"></script>
    <script type="text/javascript" src="../../script/constants.js"></script>
	<script type="text/javascript" charset="UTF-8" src="../../script/naes.js"></script>
	<script src="../../script/api.js"></script>
    <style type="text/css">

    	body{
    	    background-color: #f1f1f1 !important;
    	}




        </style>
          <script type="text/javascript">
          window.apiready = function() {
            openBMap();


        }



      function openBMap(){
        var bMap = api.require('bMap');
        bMap.getLocation({
            accuracy: '100m',
            autoStop: true,
            filter: 1
        }, function(ret, err) {
            if (ret.status) {
                      var xStation = ret.lon;
                      var yStation = ret.lat;
                                  var map = api.require('bMap');
                                  map.open({
                                      rect: {
                                          x: 0,
                                          y: 75,
                                          w: 360,
                                          h: 580
                                      },
                                      center: {
                                          lon: xStation,
                                          lat: yStation
                                      },
                                      zoomLevel: 13,
                                      showUserLocation: true,
                                      fixedOn: api.frameName,
                                      fixed: true
                                  }, function(ret) {
                                      if (ret.status) {
                                          // alert('地图打开成功');
                                      }
                                  });

            } else {
                alert(err.code);
            }
        });
      }
          </script>
 </head>
    <body>
      <header id="statusBar">
            <div style="height:75px;background: #298cb4;display: table;width: 100%;">
               <div style="height:50px;margin-top: 25px;line-height: 50px;color: #ffffff;background: #1e6887;">
                   <div style="width: 26%;margin-left: 4%;font-size: 16px;float: left;" onclick="api.closeWin();">
    	           返回
    	           </div>
    	           <div style="text-align: center;font-weight:bold;width: 40%;font-size: 16px;float: left;">
    	           地图
    	           </div>
               </div>
            </div>
    	</header>

<!-- background:url('../../image/search_zc/location1.jpg')
		</div>
	</div> -->
	<!-- 加载动画 -->
	<div id="loadingToast" style="display:none;">
			<div class="weui-mask_transparent"></div>
			<div class="weui-toast">
				<i class="weui-loading weui-icon_toast"></i>
				<p class="weui-toast__content">数据加载中...</p>
			</div>
		</div>
	<!-- 公共底部，必须引用 -->

<!--			<div class="com-footer-area footer" id="js-com-footer" style="width:100%;height: 8%;">
				<img src="../../image/db.png" style="width:100%;"/>
			</div>-->

</body>

</html>
